﻿using System;
using System.Runtime.Serialization;
using System.Security;

namespace Web7.ExceptionHandling
{
	/// <summary>
	/// 当处理异常时引发的异常
	/// </summary>
	internal class ExceptionHandlerAbortException : ApplicationException
	{
		public ExceptionHandlerAbortException()
			: base()
		{
			
		}

		public ExceptionHandlerAbortException(string message)
			: base(message)
		{
			
		}

		[SecuritySafeCritical]
		protected ExceptionHandlerAbortException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{

		}

		public ExceptionHandlerAbortException(string message, Exception innerException)
			: base(message, innerException)
		{
			
		}

		void setLevel()
		{
			this.SetLevel(OperationProcessLevel.Warning);
		}
	}
}